/**
 * @作者 libin
 * @创建时间 2021-03-31 22:45
 */
package com.github.wxpay.sdk;

import org.springframework.beans.factory.annotation.Value;
import java.io.InputStream;

public class YHLWxPayConfig extends WXPayConfig {

    // 医汇联商户配置
//    public String getAppID() { return "wx233497309c82fb28"; }
//    public String getMchID() { return "1503697291"; }
//    public String getKey() { return "yhl6688abc123nihaoskd6793bghms2l"; }

    // 晓菱商户配置
    public String getAppID() { return "wx7cc91b2b30f38651"; }
    public String getMchID() { return "1608495260"; }
    public String getKey() { return "lingxiao6688abc123oskd793bghms2l"; }

    public InputStream getCertStream() {
        return null;
    }

    public int getHttpConnectTimeoutMs() {
        return 8000;
    }

    public int getHttpReadTimeoutMs() {
        return 10000;
    }

    public IWXPayDomain getWXPayDomain() {
        IWXPayDomain iwxPayDomain = new IWXPayDomain() {
            @Override
            public void report(String domain, long elapsedTimeMillis, Exception ex) {

            }

            @Override
            public DomainInfo getDomain(WXPayConfig config) {
                return new IWXPayDomain.DomainInfo(WXPayConstants.DOMAIN_API, true);
            }
        };
        return iwxPayDomain;
    }
}
